﻿@model Skill
<div style="margin-top: 15px">
</div>
<div>
    <img src="@Url.Image(Model.ImageId)" alt="@(Model.Name + " " + Model.Nickname)" title="@(Model.Name + " " + Model.Nickname)"  />
    <h2>@Model.Name
        <br>
    </h2>
    <h2>
        Другие имена: @Html.EditDialog("Skills", "Nickname", Model.Id, Model.Nickname)
    </h2>
    @if (Model.Nickname != null)
    {
        foreach (var name in Model.Nickname.Split(','))
        {
        @name <br />
        }
    }
    <div style="margin-top: 15px">
        @Html.Raw(Model.Parameters)
        @Html.EditDialog("Skills", "Parameters", Model.Id, Model.Parameters, null, true)         
    </div>
    <div style="margin-top: 15px; max-width:350px">
        @Model.SmallDescription
    </div>
</div>

<div style="margin-top: 5px">
    <h3>Герой:</h3>
    @Html.LinkOnHero(Model.Hero)


    @if (Model.Child.Count >0 )
    {
        <h3>Sub_skills:</h3>
        foreach (var skill in Model.Child)
        {
             @Html.LinkOnSkill(skill);
        }
    }
    else if (Model.Parent!=null)
    {
        <h3>Главный скилл:</h3>
        @Html.LinkOnSkill(Model.Parents);
    }    
</div>
